﻿using System;
using System.Xml.Serialization;

namespace KBEngine.Setting.Internal
{
    [Serializable]
    public class Logger
    {
        /// <summary>
        /// 脚本入口模块， 相当于main函数
        /// </summary>
        public string entryScriptFile = "kbemain";

        /// <summary>
        /// 指定接口地址，可配置网卡名、MAC、IP
        /// </summary>
        public string internalInterface = string.Empty;

        /// <summary>
        /// 单个app(baseapp, cellapp, 等等..)进程上, 一个tick最多缓存的log数量
        /// </summary>
        public uint tick_max_buffered_logs = 131070;

        /// <summary>
        /// 单个app(baseapp, cellapp, 等等..)进程上, 一个tick同步给logger的log数量
        /// </summary>
        public uint tick_sync_logs = 0;

        public TelnetService telnet_service = new TelnetService();

        /// <summary>
        /// listen监听队列最大值
        /// </summary>
        [XmlElement("SOMAXCONN")]
        public uint somaxconn = 511;
    }
}
